﻿namespace CodedUISample.StepDefinitions
{
    using CodedUISample.StepDefinitions.Context;

    using TechTalk.SpecFlow;

    /// <summary>
    ///     The spec flow base steps.
    /// </summary>
    public class SpecFlowBaseSteps : Steps
    {
        #region Fields

        /// <summary>
        ///     The example.
        /// </summary>
        public SeleniumSamplePageContext Example;

        #endregion

        #region Public Methods and Operators

        /// <summary>
        ///     The step init.
        /// </summary>
        [BeforeScenario(Order = 50)]
        public void StepInit()
        {
            this.Example = SeleniumSamplePageContextFactory.Factory.GetContext();
            //this.Example.Report.SetTestCaseSubject("Scenario Name : " + ScenarioContext.Current.ScenarioInfo.Title);
        }

        #endregion
    }
}